package com.example.project;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;

public class ExamActivity extends Activity {

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.exam);
	}
	
	@Override
	public boolean onCreateOptionsMenu(Menu menu) {
		getMenuInflater().inflate(R.menu.menu_exam, menu);
		return true;
	}
	
	@Override
	public boolean onOptionsItemSelected(MenuItem item) {
		switch (item.getItemId())
        {
        
        case R.id.messaging:
            Intent chatIntent = new Intent(getBaseContext(), MessagingActivity.class);
            startActivityForResult(chatIntent, RESULT_OK);
            return true;
 
        default:
            return super.onOptionsItemSelected(item);
        }
	}
}
